<?php
namespace app\index\controller;
use app\index\controller\Base;
use think\Request;

class Index extends Base
{
    public function index()
    {
    	
        // 首页数据
    	$article=db('article')->order('id desc')->limit(5)->select();
    	$this->assign('article',$article);
        return view();
    }
}
